package cn.wolfcode.service;

import cn.wolfcode.domain.Activity;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IActivityService {
    void save(Activity activity);
    void delete(Long id);
    void update(Activity activity);
    Activity get(Long id);
    List<Activity> listAll();
    // 分页查询的方法
    PageInfo<Activity> query(QueryObject qo);
    List<Long> selectRelation(Long eId, Long cId);

    /* 定义一个获取指定数量的问题*/
    List<Long> getQuestionByType(Integer count, Integer type);
}
